package decimal;

import java.math.BigDecimal;

public class Test03 {
    public static void main(String[] args) {
        int res = res(100);
        System.out.println(res);
    }

    public static int res(int a) {
        if (a == 1) {
            return 1;
        }else {
            return a + res(a - 1);
        }
    }
}
